﻿
namespace TNCGameEngine.InternalHelpers
{
    internal static class Maths
    {

        public static int Pow2(int x)
        {
            int p = 1;
            for (int i = 0; i < x; i++) { p *= 2; }
            return p;
        }

        public static byte Pow2B(byte x)
        {
            byte p = 1;
            for (int i = 0; i < x; i++) { p *= 2; }
            return p;
        }

    }
}
